package common.nacos.demo02.controller;

import com.example.alibabacloudcommonsresult.entity.JsonResult;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/logistics")
public class LogisticsController {
  
  private static final Logger log = LoggerFactory.getLogger(LogisticsController.class);
  
  /**
   * 创建物流
   *
   * @param orderId 表示订单id
   * @author lihh
   */
  @GetMapping("create/{orderId}")
  public JsonResult<String> create(@PathVariable String orderId) {
    log.info("{} 物流下单成功", orderId);
    return new JsonResult<String>(200, "nacos demo2/ 物流下单成功 " + orderId);
  }
}
